/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
/*    */ package nc.ui.uapbd.cldy.ace.serviceproxy;
/*    */ 
/*    */ import nc.bs.framework.common.NCLocator;
/*    */ import nc.itf.uapbd.ICldyMaintain;
/*    */ import nc.ui.pubapp.pub.task.ISingleBillService;
/*    */ import nc.ui.pubapp.uif2app.actions.IDataOperationService;
/*    */ import nc.ui.pubapp.uif2app.query2.model.IQueryService;
/*    */ import nc.ui.querytemplate.querytree.IQueryScheme;
/*    */ import nc.vo.pub.BusinessException;
/*    */ import nc.vo.pubapp.pattern.model.entity.bill.IBill;
/*    */ import nc.vo.uapbd.cldy.CldyBillVO;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AceCldyMaintainProxy
/*    */   implements IDataOperationService, IQueryService, ISingleBillService<CldyBillVO>
/*    */ {
/*    */   public Object[] queryByQueryScheme(IQueryScheme queryScheme)
/*    */     throws Exception
/*    */   {
/* 30 */     ICldyMaintain query = (ICldyMaintain)NCLocator.getInstance().lookup(ICldyMaintain.class);
/* 31 */     return query.query(queryScheme);
/*    */   }
/*    */ 
/*    */   public IBill[] delete(IBill[] vos) throws BusinessException
/*    */   {
/* 36 */     ICldyMaintain service = (ICldyMaintain)NCLocator.getInstance().lookup(ICldyMaintain.class);
/* 37 */     service.delete((CldyBillVO[])vos, null);
/* 38 */     return null;
/*    */   }
/*    */ 
/*    */   public IBill[] insert(IBill[] vos) throws BusinessException
/*    */   {
/* 43 */     CldyBillVO[] clientVOs = (CldyBillVO[])vos;
/*    */ 
/* 45 */     CldyBillVO[] afterUpdateVOs = null;
/*    */ 
/* 47 */     ICldyMaintain service = (ICldyMaintain)NCLocator.getInstance().lookup(ICldyMaintain.class);
/* 48 */     afterUpdateVOs = service.insert(clientVOs, null);
/*    */ 
/*    */ 
/*    */ 
/* 52 */     return afterUpdateVOs;
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public IBill[] update(IBill[] clientVOs)
/*    */     throws BusinessException
/*    */   {
/* 65 */     CldyBillVO[] bills = (CldyBillVO[])clientVOs;
/*    */ 
/* 67 */     ICldyMaintain service = (ICldyMaintain)NCLocator.getInstance().lookup(ICldyMaintain.class);
/* 68 */     bills = service.update(bills);
/*    */ 
/* 70 */     return bills;
/*    */   }
/*    */ 
/*    */   public CldyBillVO operateBill(CldyBillVO arg0) throws Exception
/*    */   {
/* 75 */     ICldyMaintain service = (ICldyMaintain)NCLocator.getInstance().lookup(ICldyMaintain.class);
/* 76 */     service.delete(new CldyBillVO[] { arg0 }, null);
/* 77 */     return arg0;
/*    */   }
/*    */ }
